package com.example.demo.persistence;

import com.example.demo.domain.Product ;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductDao {
    List<Product> getProductListByCategory(@Param("categoryId") String categoryId);

    Product getProduct(@Param("productId") String productId);

    List<Product> getProductList();

    List<Product> searchProductList(@Param("keywords") String keywords);
}
